# this script provides functional testing of all db functions
function result = runtests()
  fprintf('db toolbox functional tests\n')
  fprintf('connecting...\n')
  db_connect('http://localhost:8080/wsrf/services/ogsadai/DataService', 'MySQLResource')
  fprintf('query...\n')
  db_query('SELECT * from USER')
  fprintf('update...\n')
  db_update("UPDATE USER set FIRSTNAME = 'Thomas' WHERE id = '1'") 
  fprintf('closing connection...\n')
  db_close()
  fprintf('finished\n')
  exit 
endfunction
